<template>
  <div class="">
    <MyDatePicker v-model="time"></MyDatePicker>
    <div v-for="(value, name, index) in object" :key="index">{{ getValues(value, name, index) }}</div>
  </div>
</template>

<script>
import MyDatePicker from '@/components/my-date-picker.vue';
export default {
  components: { MyDatePicker },
  data() {
    return {
      time: '',
      object: {
        a: 1,
        b: 2
      }
    }
  },
  created() { },
  mounted() { },
  methods: {
    getValues(value, name, index){
      console.log(value, name, index);
    }
  }
};
</script>

<style scoped lang="">

</style>
